package liangtWorkSpace.springTest.aopjdbc.impl;

import liangtWorkSpace.springTest.aopjdbc.dao.AccountDao;
import liangtWorkSpace.springTest.aopjdbc.service.AccountService;

/**
 * @author liangt
 * @ClassName: AccountServiceImpl
 * @title: AccountServiceImpl
 * @projectName liangtWorkSpace.springTest.aopjdbc.impl
 * @description: TODO
 * @date 2020/10/13 19:18
 */
public class AccountServiceImpl implements AccountService {
    private AccountDao accountDao;
    public void setAccountDao(AccountDao accountDao) {
        this.accountDao = accountDao;
    }
    @Override
    public void transfer(String outUser, String inUser, int money) {
        this.accountDao.out(outUser, money);
        this.accountDao.in(inUser, money);
    }
}
